package com.astruyk.battlegroundAndroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class BattlegroundAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button launchTownListButton = (Button)findViewById(R.id.town_list_button);
        launchTownListButton.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent(BattlegroundAndroid.this, TownListActivity.class);
				startActivity(intent);
			}
        });
        
        Button launchCanvasTestButton = (Button)findViewById(R.id.canvas_test_button);
        launchCanvasTestButton.setOnClickListener(new Button.OnClickListener(){
        	public void onClick(View v){
        		Intent intent = new Intent(BattlegroundAndroid.this, CanvasMapActivity.class);
        		startActivity(intent);
        	}
        });
    }
}